var commonModule = angular.module('CommonModule');

commonModule.directive('modal', function(){
	return {
		restrict: 'A',
		link: function(scope, element, attrs) {
			element.click(function() {
				console.log(attrs['title']);
				$('#myModal').modal();
			});
			
		}
	}
});